package com.iwomy.envpro.platform.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.iwomy.envpro.platform.entity.AirMonitorEquipmentEntity;
import com.iwomy.envpro.platform.entity.DataTemplateDetailsEntity;
import com.iwomy.envpro.platform.mapper.DataTemplateDetailsMapper;
import com.iwomy.envpro.platform.service.DataTemplateDetailsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 数据模板详情
 *
 * @author pig
 * @date 2023-09-26 14:57:17
 */
@Service
public class DataTemplateDetailsServiceImpl extends ServiceImpl<DataTemplateDetailsMapper, DataTemplateDetailsEntity> implements DataTemplateDetailsService {
	@Override
	public List<DataTemplateDetailsEntity> listByDataTemplateId(Long dataTemplateId) {

		LambdaQueryWrapper<DataTemplateDetailsEntity> eq = Wrappers.<DataTemplateDetailsEntity>lambdaQuery();
		eq.eq(DataTemplateDetailsEntity::getDataTemplateId,dataTemplateId);
		return this.list(eq);
	}
}